package user;

import book.BookList;
import ioperations.IOPeration;

//抽象类User
public abstract class User {
    protected String name;
    protected IOPeration[] ioPerations;

    //在子类中，帮助父类的成员进行初始化
    public User(String name) {
        this.name = name;
    }

    //抽象类里的抽象方法
    public abstract int menu();
    public void doIoperation(int num, BookList bookList){
        ioPerations[num].work(bookList);
    }
}
